void lfsr_calculate(uint16_t *reg);